package io.cloud.tec.ant_design_vue_pro.web;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("api/account")
public class AccountWeb {

    @GetMapping("sms")
    Map smsCaptcha() {
        Map map = new HashMap<>();
        map.put("captcha", String.format("%6d", Math.random() * 999999));
        return map;
    }
}
